<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>Sign in &middot; Twitter Bootstrap</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">
        <style type="text/css">
            body {
                padding-top: 40px;
                padding-bottom: 40px;
                background-color: #f5f5f5;
            }

            .form-signin {
                max-width: 300px;
                padding: 19px 29px 29px;
                margin: 0 auto 20px;
                background-color: #fff;
                border: 1px solid #e5e5e5;
                -webkit-border-radius: 5px;
                -moz-border-radius: 5px;
                border-radius: 5px;
                -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
                -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
                box-shadow: 0 1px 2px rgba(0,0,0,.05);
            }
            .form-signin .form-signin-heading,
            .form-signin .checkbox {
                margin-bottom: 10px;
            }
            .form-signin input[type="text"],
            .form-signin input[type="password"] {
                font-size: 16px;
                height: auto;
                margin-bottom: 15px;
                padding: 7px 9px;
            }

        </style>

    </head>

    <body>

        <?php if($model->hasErrors()) : ?>
            <div class="flash errors">
                <?php echo CHtml::errorSummary($model); ?>
            </div>
        <?php endif; ?>
        
        
        <div class="container">

            <?php echo CHtml::beginForm('', 'post', array('class'=>'form-signin')); ?>
                <h2 class="form-signin-heading">Пожалуйста авторизуйтесь</h2>
                
                <?php echo CHtml::activeTextField($model, 'login', array('class'=>'input-block-level', 'placeholder'=>'Логин')); ?>
                <?php echo CHtml::activePasswordField($model,'password', array('class'=>'input-block-level', 'placeholder'=>'Пароль')); ?>
                
                <label class="checkbox">
                    <?php echo CHtml::activeCheckBox($model,'rememberMe'); ?>
                    <?php echo CHtml::activeLabel($model,'rememberMe'); ?>
                </label>
                
                <?php echo CHtml::submitButton('Войти', array('class'=>'btn btn-large btn-primary')); ?>
                <a href="<?php echo Yii::app()->createUrl('site/index'); ?>" class="btn btn-large btn-primary"> На сайт </a>
            <?php echo CHtml::endform(); ?>

        </div> 
    </body>
</html>
